import { request } from '@/api/index'

export function findServerMenu() {
  return request({
    url: '/serverCenterApi/directory/findAll',
    method: 'get',
  })
}

export function dataphinList() {
  return request({
    url: '/serverCenterApi/dataphin/apiList',
    method: 'get',
  })
}

export function dictList() {
  return request({
    url: '/systemApi/dictType/list',
    method: 'get',
    params: {
      status: '1',
    },
  })
}

export function serInfoList(serviceType) {
  return request({
    url: '/serverCenterApi/serInfo/list',
    method: 'get',
    params: { serviceType },
  })
}

export function serInfoDetail(id) {
  return request({
    url: '/serverCenterApi/serInfo/detail',
    method: 'get',
    params: { id },
  })
}

export function getServicesDetail(id) {
  return request({
    url: '/serverCenterApi/register/detail',
    method: 'get',
    params: {
      id,
    },
  })
}
